package com.hualan.service;

import com.hualan.domain.Coursemark;
import com.hualan.mapper.CoursemarkMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CourseMarkServicecui {
    @Autowired
    private CoursemarkMapper coursemarkMapper;

    //查询评论条数
    public int AllCourseMarks(){
        return coursemarkMapper.courseMarks();
    }

    //查询所有评论
    public List<Coursemark> findAllCourseMark(){
        return coursemarkMapper.selectAllCourseMark();
    }
}
